package com.xywl.escort.bean


data class User<T>(var result: Int = -1, var msg: String, var t: T) {

    fun isOk(): Boolean {
        return result == 0
    }

    fun isDisabled(): Boolean {
        return result == 7
    }

    fun isInvalid(): Boolean {
        return result == -1000
    }

    override fun toString(): String {
        val sb = StringBuilder("BaseResp{")
        sb.append("result=").append(result)
        sb.append(",msg=").append(msg)
        sb.append(",t=").append(t).append("\'")
        sb.append("}")
        return sb.toString()
    }

}